<%@ Register TagPrefix="cc3" Namespace="Workflow.NET.Web.ActivityControl" Assembly="Workflow.NET.Web.ActivityControl" %>

<%@ Page Language="c#" Inherits="PHSRAG.Insight21.Humans.WorkFlowErrorActivityDetail"
    CodeFile="WorkFlowErrorActivityDetail.aspx.cs" %>

<%@ Register TagPrefix="cc2" Namespace="PHSRAG.WebControls" Assembly="PHSRAG.WebControls" %>
<%@ Register TagPrefix="cc1" Namespace="PHSRAG.Insight21.InsightWebControls" Assembly="PHSRAG.Insight21.InsightWebControls" %>
<%@ Register TagPrefix="uc1" TagName="ProtocolDetailHeader" Src="ProtocolDetailHeader.ascx" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Workflow Error Activity Detail</title>
    <link href="../Insight21.css" type="text/css" rel="stylesheet" />

    <script language="javascript" type="text/javascript">
			function MakeControlsDisable()
			{									
				var btnAcknowledge;
				btnAcknowledge = document.getElementById("btnAcknowledge");
				if (btnAcknowledge)
				{							
					btnAcknowledge.disabled=true;									
				}
			}								
    </script>

</head>
<body onload="MakeControlsDisable();">
    <form id="Form1" method="post" runat="server">
        <table width="100%">
            <tr>
                <td>
                    <cc1:Header ID="header" runat="server"></cc1:Header>
                </td>
            </tr>
            <tr style="display: none">
                <td>
                    <cc1:AdminSubNavigation ID="adminSubNavigation" runat="server" Visible="false"></cc1:AdminSubNavigation>
                </td>
            </tr>
            <tr>
                <td>
                    <cc1:AdminHumansSubNavigation ID="adminHumansSubNavigation" runat="server" Visible="false">
                    </cc1:AdminHumansSubNavigation>
                    <cc1:AdminAnimalsSubNavigation ID="adminAnimalsSubNavigation" runat="server" Visible="false">
                    </cc1:AdminAnimalsSubNavigation>
                </td>
            </tr>
            <tr>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    <cc2:PostbackGuard ID="postbackGuard" runat="server"></cc2:PostbackGuard>
                </td>
            </tr>
            <tr>
                <td>
                    <cc2:Annunciator ID="annunciator" runat="server"></cc2:Annunciator>
                </td>
            </tr>
            <tr>
                <td>
                </td>
            </tr>
        </table>
        <table width="100%" class="Placebar">
            <tr align="left">
                <td>
                    <cc2:BreadCrumb ID="breadCrumb" runat="server"></cc2:BreadCrumb>
                </td>
            </tr>
        </table>
        <table width="100%" cellspacing="0">
            <tr>
                <td class="PageName" style="height: 28px">
                    Workflow Error Activity List</td>
            </tr>
        </table>
        <asp:Panel ID="gridContainer" runat="server">
            <table class="DataTitle" cellspacing="0" width="100%">
                <tr>
                    <td>
                        Workflow Errors |
                        <asp:Label ID="recordCount" runat="server"></asp:Label>&nbsp;Records&nbsp;|&nbsp;
                    </td>
                </tr>
            </table>
            <table cellspacing="0" width="100%">
                <tr>
                    <td>
                        <cc2:Pager ID="topPager" runat="server" />
                    </td>
                </tr>
            </table>
            <table width="100%">
                <tr>
                    <td>
                        <asp:DataGrid ID="workflowErrorActivityList" AllowCustomPaging="True" GridLines="None"
                            AutoGenerateColumns="False" runat="server" AllowSorting="True" CssClass="DataGrid"
                            Width="100%">
                            <AlternatingItemStyle CssClass="DataGridAlternatingItem"></AlternatingItemStyle>
                            <ItemStyle CssClass="DataGridItem"></ItemStyle>
                            <HeaderStyle CssClass="DataGridHeader"></HeaderStyle>
                            <Columns>
                                <asp:BoundColumn Visible="False" DataField="ProtocolID" SortExpression="ProtocolID"
                                    HeaderText="Protocol ID"></asp:BoundColumn>
                                <asp:TemplateColumn Visible="false" HeaderText="Protocol Process Id">
                                    <ItemTemplate>
                                        <asp:Label ID="protocolProcessId" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ProtocolProcessId") %>'>
                                        </asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateColumn>
                                <asp:BoundColumn DataField="ProtocolNumber" SortExpression="ProtocolNumber" HeaderText="Protocol Number">
                                </asp:BoundColumn>
                                <asp:BoundColumn HeaderText="Protocol Title" DataField="ProtocolTitle" SortExpression="ProtocolTitle">
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="Type" SortExpression="Type" HeaderText="Type"></asp:BoundColumn>
                                <asp:BoundColumn DataField="WorkflowType" SortExpression="WorkflowType" HeaderText="WorkflowType">
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="SubmitterName" SortExpression="SubmitterName" HeaderText="Submitter Name">
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="PIName" SortExpression="PIName" HeaderText="PI Name"></asp:BoundColumn>
                                <asp:BoundColumn DataField="DateLastUpdated" SortExpression="DateLastUpdated" HeaderText="Last Updated Date">
                                </asp:BoundColumn>
                                <asp:TemplateColumn HeaderText="Workflow History"></asp:TemplateColumn>
                                <asp:BoundColumn Visible="False" DataField="AccessLevel" ReadOnly="True"></asp:BoundColumn>
                                <asp:BoundColumn Visible="False" DataField="ExecutionID" SortExpression="ExecutionId"
                                    HeaderText="Execution ID"></asp:BoundColumn>
                                <asp:ButtonColumn Visible="False" ButtonType="LinkButton" HeaderText="Clean Workflow"
                                    Text="Action" CommandName="CleanWorkflow" />
                            </Columns>
                        </asp:DataGrid>
                    </td>
                </tr>
            </table>
            <table cellspacing="0" width="100%">
                <tr>
                    <td>
                        <cc2:Pager ID="bottomPager" runat="server"></cc2:Pager>
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </form>
</body>
</html>
